/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-13 09:16:07
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-13 09:21:09
 */
//定义一个Person 类作为父类
public class Person{
    //成员属性name
    private String name;
    //set
    public void setName(String name){
        this.name = name;
    }
    //定义一个sayHello方法
    public void sayHello(){
        System.out.println("hello,my name is "+name);
    }


}
